import request from '@/utils/request'

// 查询打印列表
export function listPrint(query) {
  return request({
    url: '/system/print/list',
    method: 'get',
    params: query
  })
}

// 查询打印详细
export function getPrint(query) {
  return request({
    url: '/system/print',
    method: 'get',
    params: query
  })
}

// 新增打印
export function addPrint(data) {
  return request({
    url: '/system/print',
    method: 'post',
    data: data
  })
}

// 修改打印
export function updatePrint(data) {
  return request({
    url: '/system/print',
    method: 'put',
    data: data
  })
}

// 删除打印
export function delPrint(printId) {
  return request({
    url: '/system/print/' + printId,
    method: 'delete'
  })
}
